﻿<Window x:Class="SaryaAccounting.LoginView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="LoginView" Height="233" Width="402" Style="{StaticResource WindowStyle}">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100" />
            <ColumnDefinition Width="280" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="38*" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="35*" />
        </Grid.RowDefinitions>
        <Label Grid.Row="1" Content="اسم المستخدم: "/>
        <Label Grid.Row="2" Content="كلمة السر: " />

        <TextBox Grid.Column="1" Grid.Row="1" Name="txtUsername" Text="{Binding Username, Mode=OneWayToSource, UpdateSourceTrigger=PropertyChanged}" />
        <TextBox Grid.Column="1" Grid.Row="2" Name="txtPassword" Text="{Binding Password, Mode=OneWayToSource, UpdateSourceTrigger=PropertyChanged}" />

        <Button Content="ت_سجيل الدخول" Grid.Column="1" Grid.Row="3" Height="23" HorizontalAlignment="Right" Margin="0,6,89,0" Name="btnLogin" VerticalAlignment="Top" Width="80" IsDefault="True" Click="btnLogin_Click" />
        <Button Content="إ_غلاق" Grid.Column="1" Grid.Row="3" Height="23" HorizontalAlignment="Right" Margin="0,6,3,0" Name="btnClose" VerticalAlignment="Top" Width="80" IsCancel="True" Click="btnClose_Click" />
    </Grid>
</Window>
